import config from "@/config"
import http from "@/utils/request"

export default {
	list: {
		url: `${config.API_URL}/adminapi/shop.shopTask/lists`,
		name: "获取列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	edit: {
		url: `${config.API_URL}/adminapi/shop.shopTask/edit`,
		name: "修改",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	add: {
		url: `${config.API_URL}/adminapi/shop.shopTask/add`,
		name: "添加",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	delete: {
		url: `${config.API_URL}/adminapi/shop.shopTask/delete`,
		name: "删除",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	detail: {
		url: `${config.API_URL}/adminapi/shop.shopTask/detail`,
		name: "详情",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	updateStatus: {
		url: `${config.API_URL}/adminapi/shop.shopTask/updateStatus`,
		name: "操作",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	addFollow: {
		url: `${config.API_URL}/adminapi/shop.shopTask/addFollow`,
		name: "添加跟进记录",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	deleteFollow: {
		url: `${config.API_URL}/adminapi/shop.shopTask/deleteFollow`,
		name: "删除跟进记录",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	transferColleague: {
		url: `${config.API_URL}/adminapi/shop.shopTask/transferColleague`,
		name: "转给同事",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	addCoordinator: {
		url: `${config.API_URL}/adminapi/shop.shopTask/addCoordinator`,
		name: "添加协作人",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
}
